package com.biz.primus.commodity.exception;

import com.biz.primus.base.exception.ExceptionType;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author yanweijin
 * @date 2017/9/20
 */
@AllArgsConstructor
@Getter
public enum CommodityExceptionType implements ExceptionType {


	COMMON_EXCEPTION(10000,"通用异常"),
	REQUEST_PARAM_EXCEPTION(10002,"请求参数异常"),

	PRODUCT_VALIDATE_EXCEPTION(10001,"商品验证失败"),

	CATEGORY_NOT_FOUND(10002,"分类不存在"),
	PRODUCT_NOT_FOUND(10003,"商品不存在"),



	;


	private int code;
	private String description;

}
